package com.yunxin.core.customer.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 客户授权日志表
 * @TableName custom_info_authorization_log
 */
@TableName(value ="custom_info_authorization_log")
@Data
public class CustomInfoAuthorizationLog implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 企微客户id
     */
    private Long wechatCustomerId;

    @Schema(description = "客户姓名")
    private String userName;
    @Schema(description = "客户身份证号")
    private String idNumber;
    @Schema(description = "客户手机号")
    private String phoneNumber;

    /**
     * 标识删除，0：存在 1：删除
     */
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDel;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Long createUserId;

    @TableField(exist = false)
    private String createUserName;

    @Schema(description = "客户风控探针C表")
    @TableField(exist = false)
    private CustomInfoRiskProbe customInfoRiskProbe;

    @Schema(description = "客户风控全景雷达表")
    @TableField(exist = false)
    private  CustomInfoRiskRadar customInfoRiskRadar;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}